[LOADER] Another change to the elf_paddr_offset/virt_base logic.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 21 May 2006 17:55:14 +0000 (18:55 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 21 May 2006 17:55:14 +0000 (18:55 +0100)
commitb9cede74182f8a623bc50b76d62059c0f99b7ed0
tree2eb29a3b325eaf5f0cfd47afd9f488ce8be9d34c
parente699658dbbbb97db11fc6c4bebf9aaffdc275db4
[LOADER] Another change to the elf_paddr_offset/virt_base logic.
This avoids using zero to indicate 'undefined'. Instead we use
an explicit boolean to indicate whether suitable defaults should
be used. As well as making the logic clearer (I believe) it also
avoids problems if anyone ever explicitly specifies virt_base
(and also elf_paddr_offset) as zero.

Signed-off-by: Keir Fraser <keir@xensource.com>
tools/libxc/xc_load_elf.c
xen/common/elf.c